# -*- coding: utf-8 -*-
"""
Created on Tue Apr  2 14:24:44 2024

@author: YANCL
"""

import cv2

cxk = cv2.imread("photo\\cxk.bmp")

flip_X  = cv2.flip(cxk, 1)    #关于X轴左右翻转 
flip_Y  = cv2.flip(cxk, 0)    #关于Y轴上下翻转
flip_XY = cv2.flip(cxk, -1)   #上下左右都翻转

cv2.imshow("original", cxk)
cv2.imshow("flip_X",  flip_X)
cv2.imshow("flip_Y",  flip_Y)
cv2.imshow("flip_XY", flip_XY)

cv2.waitKey()
cv2.destroyAllWindows()
